<{include file="public/admin_header" /}>
<style>
    select{border: 1px solid #DBDBDB;height: 29px;width:25%;}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top:0;">
    <legend><{$MenuName}>修改</legend>
</fieldset>
<form class="layui-form-pane" action="<{:url('edit')}>"  enctype="multipart/form-data" method="post" onsubmit="return MemberEditSaveInfoCheck();">
    <div class="layui-form-item">
        <label class="layui-form-label"><{$MenuName}>邀请码</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="text" readonly class="layui-input" value="<{$Info.MemberInviteCode|default='无'}>" />
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label"><{$MenuName}>名称</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="text" readonly class="layui-input" value="<{$Info.MemberName}>"/> KEY:<{$Info.Tokenrand}>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
        <span id="Msg1State" style="display:none;">1</span>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员价格</label>
        <div class="layui-input-inline inputTextWidth">
            <select name="MemberPriceType">
                <{volist name="MemberPriceType" id="val"}>
                <option value="<{$val.TypeID}>" <{if condition="!empty($Info.MemberPriceType.Old) && $Info.MemberPriceType.Old eq $val.TypeID"}>selected<{/if}>><{$val.TypeName}></option>
                <{/volist}>
            </select>
        </div>
    </div>
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">所属会员级别</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<select name="MemberTypeID">-->
    <!--<{volist name="GetMemberTypeList" id="val"}>-->
    <!--<option value="<{$val.TypeID}>" <{if condition="!empty($Info.MemberTypeID.Old) && $Info.MemberTypeID.Old eq $val.TypeID"}>selected<{/if}>><{$val.TypeName}></option>-->
    <!--<{/volist}>-->
    <!--</select>-->
    <!--</div>-->
    <!--</div>-->
    <div class="layui-form-item">
        <label class="layui-form-label"><{$MenuName}>密码</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="password" name="MemberPwd" class="layui-input" />
        </div>
        <div class="layui-form-mid layui-word-aux">不修改为空即可</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">确认密码</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="password" name="MemberAffirmPwd" class="layui-input" />
        </div>
        <div class="layui-form-mid layui-word-aux">不修改为空即可</div>
    </div>
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">公司名称</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<input type="text" name="MemberCompanyName" value="<{$Info.MemberCompanyName}>" class="layui-input" />-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux"></div>-->
    <!--</div>-->
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">真实姓名</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<input type="text" name="MemberTrueName" value="<{$Info.MemberTrueName}>" class="layui-input" />-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux"></div>-->
    <!--</div>-->
    <!--onblur="MemberInfoCheck(this,'<{:url('ajax/MemberInfoCheck')}>','MemberMobile',2,'<{$Info.MemberID}>');"-->
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="text" name="MemberMobile" value="<{$Info.MemberMobile}>" class="layui-input" />
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
        <span id="Msg2State" style="display:none;"><{if condition="empty($Info.MemberMobile)"}>1<{else}>0<{/if}></span>
    </div>
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">电子邮箱</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<input type="text" name="MemberEmail" value="<{$Info.MemberEmail}>" onblur="MemberInfoCheck(this,'<{:url('ajax/MemberInfoCheck')}>','MemberEmail','3','<{$Info.MemberID}>');" class="layui-input" />-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux"></div>-->
    <!--<span id="Msg3State" style="display:none;"><{if condition="empty($Info.MemberEmail)"}>1<{else}>0<{/if}></span>-->
    <!--</div>-->
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">联系地址</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<input type="text" name="MemberAddress" value="<{$Info.MemberAddress}>" class="layui-input" />-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux"></div>-->
    <!--</div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">在线QQ</label>
        <div class="layui-input-inline inputTextWidth">
            <input type="text" name="MemberQQ" value="<{$Info.MemberQQ}>" class="layui-input" />
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">微信号</label>-->
    <!--<div class="layui-input-inline inputTextWidth">-->
    <!--<input type="text" name="MemberWeiXin" value="<{$Info.MemberWeiXin}>" class="layui-input" />-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux"></div>-->
    <!--</div>-->
    <div class="layui-form-item ">
        <label class="layui-form-label">是否禁用</label>
        <div class="layui-form layui-input-inline inputTextWidth radiofile">
            <input type="radio" name="MemberState" value="1" title="已启用" <{if condition="$Info.MemberState eq 1"}>checked<{/if}>>
            <input type="radio" name="MemberState" value="0" title="已禁用" <{if condition="$Info.MemberState eq 0"}>checked<{/if}>>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
	 <div class="layui-form-item ">
        <label class="layui-form-label">资源用户</label>
        <div class="layui-form layui-input-inline inputTextWidth radiofile">
            <input type="radio" name="superacc" value="1" title="是" <{if condition="$Info.superacc eq 1"}>checked<{/if}>>
            <input type="radio" name="superacc" value="0" title="否" <{if condition="$Info.superacc eq 0"}>checked<{/if}>>
        </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
        <input type="hidden" name="MemberID" value="<{$Info.MemberID}>">
        <input type="hidden" name="MemberName" value="<{$Info.MemberName}>">
        <button class="layui-btn"  type="submit">提交保存</button>
    </div>
</form>
<{include file="public/admin_footer" /}>
<script>
    layui.use('upload', function(){
        var $ = layui.jquery,upload = layui.upload;
    });
</script>